﻿package com.wh.bean;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Description： 
 * @author hong.wei
 * Date 2016年9月8日 上午11:19:43
 * @version V1.0
 */
public class MenuTree implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2604341300672377675L;

	private String id;
	
	private String pId; //付节点id
	
	private String text;
	
	private String state;
	
	private String url;
	
	private Map<String, Object> attributes = new HashMap<String, Object>(); // 添加到节点的自定义属性
	
	private List<MenuTree> children; //子节点数据
	

	public List<MenuTree> getChildren() {
		return children;
	}

	public void setChildren(List<MenuTree> children) {
		this.children = children;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}

	@Override
	public String toString() {
		return "MenuTree [id=" + id + ", pId=" + pId + ", text=" + text
				+ ", state=" + state + ", url=" + url + ", attributes="
				+ attributes + "]";
	}
	
}
